package com.example.foobar.dao.service;

import com.example.foobar.dto.RetentionRateDTO;
import com.example.foobar.entity.DaQrcodeRetentionRates;
import com.example.foobar.param.DaQrcodeRetentionRatesPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.Date;
import java.util.List;

/**
 * 留存率记录 服务类
 *
 * @author 郑英奔
 * @since 2021-07-16
 */
public interface DaQrcodeRetentionRatesDaoService extends BaseService<DaQrcodeRetentionRates> {

    /**
     * 保存
     *
     * @param daQrcodeRetentionRates
     * @return
     * @
     */
    boolean saveDaQrcodeRetentionRates(DaQrcodeRetentionRates daQrcodeRetentionRates) ;

    /**
     * 修改
     *
     * @param daQrcodeRetentionRates
     * @return
     * @
     */
    boolean updateDaQrcodeRetentionRates(DaQrcodeRetentionRates daQrcodeRetentionRates) ;

    /**
     * 删除
     *
     * @param id
     * @return
     * @
     */
    boolean deleteDaQrcodeRetentionRates(Long id) ;


    /**
     * 获取分页对象
     *
     * @param daQrcodeRetentionRatesPageParam
     * @return
     * @
     */
    Paging<DaQrcodeRetentionRates> getDaQrcodeRetentionRatesPageList(DaQrcodeRetentionRatesPageParam daQrcodeRetentionRatesPageParam) ;

    List<RetentionRateDTO> getQrCodeStroyRetentonRates(String sceneId, Date startDate, Date addDays);
}
